Network Scanning¶
Ping sweep with reverse lookup¶
1 2 | #Ping sweep and reverse lookup together (1..254) | % {$ip="10.0.40.$_"; Write-output "$IP $(test-connection -computername "$ip" -quiet -count 1) $( Resolve-DnsName $ip -ErrorAction Ignore |select -exp NameHost ) "} |